package org.feiye.studyday22.integertsst;

public class Demo {
	public static void main(String[] args) {
		// 构造方法：所有包装类都有的
		int i = 9;
		Integer it = new Integer(i);
		double d = 10.4;
		Double dou = new Double(d);
		Boolean b = new Boolean(false);
		Character c = new Character('男');
		System.out.println(it + "  " + dou + "  " + b + "  " + c);
		// 除之外Character(未定义该构造器)的包装类都有的构造方法，将字符串做参数。
		Integer it1 = new Integer("1");
		Double dou1 = new Double("10.4");
		Boolean b1 = new Boolean("true");
		// Character c1 = new Character("男");
		System.out.println(it1 + "  " + dou1 + "  " + b1 + "  ");
	}
}
